import java.util.ArrayList;
import java.util.Collection;
import java.util.function.Consumer;

public class Test06 {
    public static void main(String[] args) {
        Collection<String> coll=new ArrayList<>();
        coll.add("zhangsan");
        coll.add("lisi");
        coll.add("wnagwu");
        coll.forEach( s->System.out.println(s));

    }
}
